﻿using System.Collections.Generic;

namespace WeWork.SDK.Framework.Entitys.Send
{
    /// <summary>
    /// 音频存档消息
    /// </summary>
    public class ChatMeetingVoiceCall : ChatSend
    {
        /// <summary>
        /// 音频id
        /// </summary>
        public string voiceid { get; set; } = string.Empty;
        /// <summary>
        /// 音频消息内容。包括结束时间、fileid，可能包括多个demofiledata、sharescreendata消息，demofiledata表示文档共享信息，sharescreendata表示屏幕共享信息。Object类型
        /// </summary>
        public ChatMeetingVoiceCallInfo meeting_voice_call { get; set; }
    }

    public class ChatMeetingVoiceCallInfo
    {
        /// <summary>
        /// 音频结束时间。uint32类型
        /// </summary>
        public long endtime { get; set; }

        /// <summary>
        /// 音频媒体下载的id。String类型
        /// </summary>
        public string sdkfileid { get; set; } = string.Empty;

        /// <summary>
        /// 文档分享对象，Object类型
        /// </summary>
        public List<DemoFileDataInfo> demofiledata { get; set; } = new List<DemoFileDataInfo>();

        /// <summary>
        /// 文档分享对象，Object类型
        /// </summary>
        public List<ShareScreenDataInfo> sharescreendata { get; set; } = new List<ShareScreenDataInfo>();
    }
    public class DemoFileDataInfo
    {
        /// <summary>
        /// 音频结束时间。uint32类型
        /// </summary>
        public string filename { get; set; } = string.Empty;
        /// <summary>
        /// 文档共享操作用户的id。String类型
        /// </summary>
        public string demooperator { get; set; } = string.Empty;
        /// <summary>
        /// 文档共享开始时间。Uint32类型
        /// </summary>
        public long starttime { get; set; }
        /// <summary>
        /// 音文档共享结束时间。Uint32类型
        /// </summary>
        public long endtime { get; set; }
    }

    public class ShareScreenDataInfo
    {
        /// <summary>
        /// 屏幕共享用户的id。String类型
        /// </summary>
        public string share { get; set; } = string.Empty;
        /// <summary>
        /// 屏幕共享开始时间。Uint32类型
        /// </summary>
        public long starttime { get; set; }
        /// <summary>
        /// 屏幕共享结束时间。Uint32类型 
        /// </summary>
        public long endtime { get; set; }
    }
}
